package com.xywl.escort.view.setting;

import com.xywl.escort.di.ActivityScoped;
import com.xywl.escort.di.FragmentScoped;
import com.xywl.escort.view.user.login.LoginActivity;
import com.xywl.escort.view.user.login.LoginContract;
import com.xywl.escort.view.user.login.LoginPresenter;

import dagger.Binds;
import dagger.Module;
import dagger.android.ContributesAndroidInjector;

@Module
public abstract class SettingsModule {

    @FragmentScoped
    @ContributesAndroidInjector
    abstract SettingsActivity settingsActivity();

    @ActivityScoped
    @Binds
    abstract SettingsContract.Presenter settingsPresenter(SettingsPresenter presenter);
}
